package com.beizhen.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.beizhen.demo.dao.StuCourseDao;
import com.beizhen.demo.dao.StuOrganizationDao;
import com.beizhen.demo.entity.StuCourse;
import com.beizhen.demo.entity.StuOrganization;
import com.beizhen.demo.service.StuCourseService;
import com.beizhen.demo.service.StuOrganizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StuOrganizationServiceImpl extends ServiceImpl<StuOrganizationDao, StuOrganization>  implements StuOrganizationService {

    @Autowired
    private StuOrganizationDao stuOrganizationDao;

    @Override
    public int addStuOrganization(StuOrganization stuOrganization) {
        return stuOrganizationDao.insert(stuOrganization);
    }

    @Override
    public int updStuOrganization(StuOrganization stuOrganization) {
        return stuOrganizationDao.updateById(stuOrganization);
    }
}
